﻿package
{
	import flash.display.MovieClip;
	
	public class CardObject extends MovieClip
	{
		private var _cardFlag:int;
		
		public function CardObject()
		{
			super();
			this.stop();
		}
		public function set cardFlag(value:int):void
		{
			this._cardFlag = value;
			this.update();
		}
		
		private var _data:Object;
		
		public function set data(value:Object):void {
			this._data = value;
			this.update();
		}
		
		public function get data():Object {
			return this._data;
		}
		
		private function func1():void {
			this.stop();
		}
		
		public function update():void {
			this.gotoAndStop(this.data.frame);
		}
	}
}